package com.sc.fs3.repository;

import com.sc.fs3.pojo.FileEntity;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import java.util.List;

public interface DocRepository
        extends ElasticsearchRepository<FileEntity,String> {

    //根据title进行匹配查询
    Iterable<FileEntity> queryFileEntitiesByTitleMatches(String title);


    //根据title和content进行匹配查询
    List<FileEntity> queryFileEntitiesByTitleMatchesOrContentMatches(
            String title,String content);


}
